package com.titanrise.crm.domain.model.enums;

import lombok.Getter;

/**
 * @Description:
 * @Author: pront
 * @Time:2024-11-21 12:24
 */
@Getter
public enum MessageStatus {

    /**
     * 未读
     */
    UNREAD(0, "未读"),
    /**
     * 已读
     */
    READ(1, "已读");

    private int value;
    private String message;

    MessageStatus(int value, String message) {
        this.value = value;
        this.message = message;
    }

    public String toValue() {
        return this.equals(UNREAD) ? "UNREAD" : "READ";
    }

}
